<template>
  <view class="add-success" v-cloak>
    <image src="https://fine-yahe.oss-cn-shanghai.aliyuncs.com/app/empty/success.png" mode="aspectFill" class="img"></image>
    <view class="h2">提交成功</view>
    <view class="add-card">
      <view class="card-item">
        <view class="item-label">诊疗人</view>
        <view class="item-info">{{info.name}}</view>
      </view>
      <view class="card-item">
        <view class="item-label">诊疗卡号</view>
        <view class="item-info">{{info.id}}</view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        info:{}
      };
    },
    onLoad(ops) {
      this.info = ops
    }
  }
</script>

<style lang="less" scoped>
.add-success{
  padding: 24rpx;
  min-height: 100vh;
  box-sizing: border-box;
  background: var(--page-bg);
  .img{
    width: 174rpx;
    height: 174rpx;
    margin: 150rpx auto 0;
    display: block;
  }
  .h2{
    font-size: 32rpx;
    font-weight: bold;
    margin: 80rpx 0;
    text-align: center;
  }
  .add-card{
    background: #fff;
    border-radius: 20rpx;
    padding: 0 24rpx;
    .card-item{
      padding: 34rpx 0;
      line-height: 1;
      display: flex;
      align-items: center;
      font-size: 28rpx;
      border-bottom: 2rpx solid #efefef;
      &:last-child{
        border: 0;
      }
      .item-label{
        color: var(--title-color);
        margin-right: auto;
      }
    }
  }
  
}
</style>
